iT邦幫忙

0

[Yolov8-TensorRT] - 1. CUDA安裝

  • 分享至 

  • xImage
  •  
  1. 查顯卡支援cuda版本
nvidia-smi

https://ithelp.ithome.com.tw/upload/images/20241214/20134736cOMZImKJyA.jpg

  1. 下載cuda
    官網: https://developer.nvidia.com/cuda-downloads
    下載位置: https://developer.nvidia.com/cuda-downloads?target_os=Windows&target_arch=x86_64&target_version=10
    https://ithelp.ithome.com.tw/upload/images/20241214/20134736l7yG82DJBa.jpg

  2. 開始安裝cuda
    https://ithelp.ithome.com.tw/upload/images/20241214/20134736PwjZcH5UrF.jpg
    https://ithelp.ithome.com.tw/upload/images/20241214/20134736rnQMun6CVk.jpg
    https://ithelp.ithome.com.tw/upload/images/20241214/20134736UYzoKxhkvL.jpg
    https://ithelp.ithome.com.tw/upload/images/20241214/20134736BoHWoHeFRF.jpg
    https://ithelp.ithome.com.tw/upload/images/20241214/20134736toqH6t3Bpi.jpg

※當出現安裝失敗
方法1:

  • 檢查驅動程式當前版本是否高於安裝版本 (安裝版本低於當前版本就取消)
  • 檢查是否有安裝VS (有就取消)
    https://ithelp.ithome.com.tw/upload/images/20241214/20134736e562qnQhFv.jpg
    https://ithelp.ithome.com.tw/upload/images/20241214/20134736zj0o9nO2Ci.jpg

如果上述還是安裝失敗
方法2:
除了取消驅動和VS, 另外將VSE也取消
https://ithelp.ithome.com.tw/upload/images/20241214/20134736NpHCzUUU3o.jpg
https://ithelp.ithome.com.tw/upload/images/20241214/20134736FHanLecM4V.jpg
https://ithelp.ithome.com.tw/upload/images/20241214/20134736bkgcniIvY4.jpg

  1. 新增系統環境變量
CUDA_LIB_PATH: %CUDA_PATH%\lib\x64
CUDA_BIN_PATH: %CUDA_PATH%\bin
%CUDA_LIB_PATH%;%CUDA_BIN_PATH%;
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\lib\x64
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\include
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.6\extras\CUPTI\lib64
  1. 測試
nvcc -V

https://ithelp.ithome.com.tw/upload/images/20241214/20134736qht3jViJlp.jpg

參考文件:
cuda: https://docs.nvidia.com/cuda/cuda-installation-guide-microsoft-windows/index.html#


圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言